﻿<%@ Control Language="C#"  %>
<script runat="server">
    private int Item_Lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        Item_Lang = Utils.GetQueryString("lang", 1);
        Agents agents = new Agents();
        Repeater_List.DataSource = agents.List(Item_Lang);
        Repeater_List.DataBind();
    }
</script>
<div id="Agents" >
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
<a class="item" href="News-list-shops.aspx?Cid=26&lang=<%=Item_Lang %>&ad_id=<%#Eval("AD_ID") %>">
    <h4><%#Eval("Agent_Site")%></h4>
    <div>
        <span><%#Eval("Agent_Name") %></span>
        <p><%#Eval("Agent_Address")%></p>
        <code><%#Eval("Agent_Tel")%></code>
    </div>
</a>
</ItemTemplate>
</asp:Repeater>
</div>
